package com.iotstudio.embeddedcloudplatform.util.page;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ListUtil {

    String accessPath;

    boolean checked;

    int delFlag;

    int parentId;

    String resourceCode;

    String resourceDesc;

    int resourceGrade;

    int resourceID;

    String resourceName;

    int resourceOrder;

    String resourceType;

    public ListUtil() {

    }

    public ListUtil(String accessPath, boolean checked, int delFlag,
                    int parentId, String resourceCode, String resourceDesc,
                    int resourceGrade, int resourceID, String resourceName,
                    int resourceOrder, String resourceType) {
        this.accessPath = accessPath;
        this.checked = checked;
        this.delFlag = delFlag;
        this.parentId = parentId;
        this.resourceCode = resourceCode;
        this.resourceDesc = resourceDesc;
        this.resourceGrade = resourceGrade;
        this.resourceID = resourceID;
        this.resourceName = resourceName;
        this.resourceOrder = resourceOrder;
        this.resourceType = resourceType;
    }

    public List<ListUtil> tempList(){
        ListUtil list1=new ListUtil("",false,0,
                1,"","",
                2,3,"我的设备",
                0,"");
        ListUtil list2=new ListUtil("http://localhost:8080/v1/pub/Sensor",false,0,
                1,"","",
                2,2,"添加传感器",
                0,"");
        ListUtil list3=new ListUtil("",false,0,
                1,"","",
                2,4,"用户信息",
                0,"");
        List<ListUtil> Data=new ArrayList<ListUtil>();
        Data.add(list1);
        Data.add(list2);
        Data.add(list3);
        return Data;
    }
}
